package com.fenqing.utils;

import cn.hutool.json.JSONUtil;

/**
 * @author fenqing
 */
public class StringToCharTwoArrayEncoder implements Encoder<String, char[][]> {

    public StringToCharTwoArrayEncoder() {
    }

    @Override
    public char[][] encoder(String input) {
        return (char[][]) JSONUtil.parseArray(input).toArray(char[][].class);
    }
}